-
Notifications
You must be signed in to change notification settings - Fork 6
add the cascaded matrix support #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can control the display on any one in the cascaded matrix.
Hello @bluejazzCHN |
@bluejazzCHN Hello, do you still want to work on this PR? let us know. Thanks. |
read and try, it's also wrong. I don't know what I need to do. |
Did you run Thanks |
Yeah Thanks I will take a look, I see that the problem is not in your code. I will take a look tonight and maybe do a PR on your repo if I could find the solution. Thanks :) |
Ok now we are good, that was a tricky one for you info, sometimes Sphinx really, really really need their predefined spaces while parsing. That was the problem. Thanks :) |
@jposada202020 it sound very good. thanks. |
@bluejazzCHN No problem. |
# Conflicts: # adafruit_max7219/max7219.py
this demo is for old API in the early PR. so delete it
I tried the original library with a Seeeduino Xiao the other day and have the same problem with (lack of) support for 4x8x8 displays. Now I found your pull request. First off, thanks for sharing! The display I have is www.az-delivery.de/en/products/4-x-64er-led-matrix-display which is a plain 4x cascaded / chained MAX7219 unit. I have gotten this to work with code of my own. Let me check out this branch, review the code and see if it works. Will report, time permitting... |
@m9aertner looking forward to your results. |
Hello, I was able to try out your code on my (DIY) test unit! I am afraid I did not succeed in getting the display to work fully. I trust it's working for you, so I shall check my local environment some more for sure. Still, a couple of points that I noted:
Again, thanks so much for sharing your work! |
So happy to see that there was a PR open for cascading 8x8 matrices, if only I had noticed it before I spent a few hours working on it myself. Unfortunately, I can't seem to get your implementation to work. I'm using a Raspberry Pi 4 running Ubuntu 20.04, Python 3.9, and this matrix assembly with the following demo code: from adafruit_max7219.matrices import Matrix8x8
from board import MOSI, SCLK, D25
import busio
import digitalio
import time
clk = SCLK
din = MOSI
cs = digitalio.DigitalInOut(D25)
spi = busio.SPI(clk, MOSI=din)
display = Matrix8x8(spi, cs, num=3)
display.brightness(1)
display.fill(0)
display.show()
time.sleep(0.5)
for x in range(24):
for y in range(8):
display.pixel(x, y, 1)
display.show()
time.sleep(0.1) That results in this: The trick seems to be waiting to pull the chip select high until after all the displays have been addressed. If the maintainers are interested I'd be happy to fork and try to update the existing codebase to accommodate the aforementioned modifications but I don't want to be rude any hijack this PR with another. |
@FlantasticDan that would be great if you want to start working on implementing these modifications. This branch has conflicts now and it looks like a few folks tried it out unsuccessfully. OP has not commented in a little while. If they come back around perhaps they'd be willing to review / help test the next PR when it's ready. |
I've opened #37 which implements my attempt at cascading MAX7219 chips. If anyone in this discussion is still willing and able, I'd love for you to test it out and provide any and all feedback. |
Revert "Pull/29"
Thanks for all of the preliminary work on this @bluejazzCHN and @m9aertner as well as @FlantasticDan for trying this out and reporting your findings. This PR has conflicts currently and it sounds like there was trouble getting it running on Raspberry Pi. For now I think we can pick up the effort on this feature in #37 @kattni |
update show and write_cmd functions to support cascaded matrix. demo show that write different char to two matrix that are cascaded with max7219.